package com.example.demo.controller;
import com.demo.swagger.generate.api.GreetApi;
import com.demo.swagger.generate.model.HelloResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class GreetController implements GreetApi {
    /**
     * GET /greet : 问候
     * 返回一个问候消息
     *
     * @return 成功响应 (status code 200)
     */
    @Override
    public ResponseEntity<HelloResponse> greetGet() {
        HelloResponse response = new HelloResponse();
        response.setMessage("greets");
        return ResponseEntity.ok(response);
    }
}
